package aaexcercise.chap5.p5.p3;

import aaexcercise.chap5.p5.p1.MyContents;
import aaexcercise.chap5.p5.p2.MyParcel;

/**
 * Created by Administrator on 2017/4/12.
 */
 class SmallParcel extends MyParcel {
    public MyContents getContents(){
        return new ContentsImpl("jimlee");
    }
}

    public class TestMy{
        public static void main(String[] args) {
            SmallParcel p = new SmallParcel();
            MyContents cc = p.getContents();
            String a = cc.getName();
            System.out.println(a);
        }
    }
